package com.woniuxy.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import lombok.NoArgsConstructor;

@NoArgsConstructor
public class House implements Serializable {

	/**
	 * 
	 */

	private static final long serialVersionUID = 1L;
	private int house_id;
	private String address;
    private int max_number;
    private int occupy_number;
	private BigDecimal house_rent;
	private int state;
	private int user_id;
	private String house_type;
	private String house_time;
	private String pay_type;
	private int house_sort;
	private User user;

	/*
	 * 房间id house_id
	 * 
	 * 房间地址id address_id
	 * 
	 * 可容纳人数 max_number
	 * 
	 * 已住人数 occupy_number
	 * 
	 * 房租 house_rent
	 * 
	 * 房间状态id state(0-正常 1-损坏)
	 * 
	 * 房东id owner_id
	 * 
	 * 房间户型 house_type
	 * 
	 * 租房时间 house_time
	 * 
	 * 支付方式 pay_type
	 * 
	 * 房间类型 house_sort（0-男生宿舍 1-女生宿舍）
	 * 
	 */
	public int getHouse_id() {
		return house_id;
	}
	public void setHouse_id(int house_id) {
		this.house_id = house_id;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public int getMax_number() {
		return max_number;
	}
	public void setMax_number(int max_number) {
		this.max_number = max_number;
	}
	public int getOccupy_number() {
		return occupy_number;
	}
	public void setOccupy_number(int occupy_number) {
		this.occupy_number = occupy_number;
	}
	public BigDecimal getHouse_rent() {
		return house_rent;
	}
	public void setHouse_rent(BigDecimal house_rent) {
		this.house_rent = house_rent;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public int getUser_id() {
		return user_id;
	}
	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}
	public String getHouse_type() {
		return house_type;
	}
	public void setHouse_type(String house_type) {
		this.house_type = house_type;
	}
	public String getHouse_time() {
		return house_time;
	}
	public void setHouse_time(String house_time) {
		this.house_time = house_time;
	}
	public String getPay_type() {
		return pay_type;
	}
	public void setPay_type(String pay_type) {
		this.pay_type = pay_type;
	}
	public int getHouse_sort() {
		return house_sort;
	}
	public void setHouse_sort(int house_sort) {
		this.house_sort = house_sort;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}

	public House(int house_id, String address, int max_number, int occupy_number, BigDecimal house_rent, int state,
			int user_id, String house_type, String house_time, String pay_type, int house_sort, User user) {
		super();
		this.house_id = house_id;
		this.address = address;
		this.max_number = max_number;
		this.occupy_number = occupy_number;
		this.house_rent = house_rent;
		this.state = state;
		this.user_id = user_id;
		this.house_type = house_type;
		this.house_time = house_time;
		this.pay_type = pay_type;
		this.house_sort = house_sort;
		this.user = user;
	}

    @Override
    public String toString() {
        return "House [house_id=" + house_id + ", address=" + address + ", max_number=" + max_number
                + ", occupy_number=" + occupy_number + ", house_rent=" + house_rent + ", state="
                + state + ", user_id=" + user_id + ", house_type=" + house_type + ", house_time="
                + house_time + ", pay_type=" + pay_type + ", house_sort=" + house_sort + ", user="
                + user + "]";
    }

}
